<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="common.jsp"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="${ctx}/resources/images/favicon.ico">
    <title>XL-CD</title>
    <!-- Bootstrap core CSS -->
    <link href="${ctx}/resources/css/bootstrap/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="${ctx}/resources/css/bootstrap/dashboard.css" rel="stylesheet">
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="${ctx}/resources/js/bootstrap/ie10-viewport-bug-workaround.js"></script>
    <title>Signin XL-Monitor</title>
    <!-- Custom styles for this template -->
    <link href="${ctx}/resources/css/bootstrap/signin.css" rel="stylesheet">
      <%@include file="common/head.jsp"%>
  </head>

  <body>

    <div class="container">
      <c:if test="${msg!=null}">
      <div class="alert alert-warning">
        ${msg}
      </div>
      </c:if>
      <form class="form-signin" action="${ctx}/dologin" method="post">
        <h2 class="form-signin-heading">Please sign in</h2>
        <label for="inputEmail" class="sr-only">UserName</label>
        <input type="text" id="inputEmail" name="inputEmail"  class="form-control" placeholder="UserName"  required autofocus>
        <br/>
        <label for="inputPassword" class="sr-only">Password</label>
        <input type="password" id="inputPassword" name="inputPassword" class="form-control" placeholder="Password" required >
        <div class="checkbox">
          <label>

          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
      </form>

    </div> <!-- /container -->

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->

    <script>
        if(window.top != window.self){
            window.top.location.href = "${ctx}/login";
        }
    </script>
  </body>
</html>
